package com.suzhuoke.ncpsy.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.suzhuoke.ncpsy.model.Ncp;
import com.suzhuoke.ncpsy.model.NodeInfo;
import com.suzhuoke.ncpsy.model.Tp;
import com.suzhuoke.ncpsy.model.example.TpExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
@Mapper
public interface TpMapper extends BaseMapper<Tp> {
    /**
     * 根据模板id查询模板信息
     * @param tId
     * @return
     */
    Tp queryTpByid(@Param("tId") Integer tId);

    /**
     * 根据批次号查询农产品详情
     * @param nId
     * @return
     */
    Ncp queryNcpByid(@Param("nId")String nId);
    /**
     * 根据企业id查询农产品
     * @param qyid
     * @return
     */
    List<Ncp> queryNcpByqid(@Param("qyid")String qyid);
    /**
     * 根据企业id查询环节信息
     * @param qId
     * @return
     */
    List<NodeInfo> queryNodeByQy(@Param("qId")String qId,@Param("state")Integer state);
/*    long countByExample(TpExample example);

    int deleteByExample(TpExample example);



    int insertSelective(Tp record);

    List<Tp> selectByExample(TpExample example);

    int updateByExampleSelective(@Param("record") Tp record, @Param("example") TpExample example);

    int updateByExample(@Param("record") Tp record, @Param("example") TpExample example);*/
}